<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="ThemeBucket">
    <link rel="shortcut icon" href="#" type="image/png">

    <title>上传漫画</title>

    <!--data table-->
    {css href="/static/admin/js/data-tables/DT_bootstrap.css"}

    {css href="/static/admin/css/style.css"}
    {css href="/static/admin/css/style-responsive.css"}
    {css href="/static/admin/css/bootstrap-fileupload.min.css"}
    {css href="/static/admin/css/toastr.min.css"}

    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
    {js href="/static/admin/js/html5shiv.js"}
    {js href="/static/admin/js/respond.min.js"}
    <![endif]-->
</head>

<body class="sticky-header">

<section>
    <!-- left side start-->
    <div class="left-side sticky-left-side">

        <!--logo and iconic logo start-->
        <div class="logo">
            <a href="index.html"><img src="/static/admin/images/logo.png" alt=""></a>
        </div>

        <div class="logo-icon text-center">
            <a href="index.html"><img src="/static/admin/images/logo_icon.png" alt=""></a>
        </div>
        <!--logo and iconic logo end-->


        <div class="left-side-inner">

            <!-- visible to small devices only -->

            <!--sidebar nav start-->
            <ul class="nav nav-pills nav-stacked custom-nav">
                <li class="active"><a href="index.html"><i class="fa fa-home"></i> <span>Dashboard</span></a></li>
                <li class="menu-list"><a href=""><i class="fa fa-laptop"></i> <span>Layouts</span></a>
                    <ul class="sub-menu-list">
                        <li><a href="blank_page.html"> Blank Page</a></li>
                        <li><a href="boxed_view.html"> Boxed Page</a></li>
                        <li><a href="leftmenu_collapsed_view.html"> Sidebar Collapsed</a></li>
                        <li><a href="horizontal_menu.html"> Horizontal Menu</a></li>

                    </ul>
                </li>
                
                <li class="menu-list"><a href="#"><i class="fa fa-th-list"></i> <span>用户管理</span></a>
                    <ul class="sub-menu-list">
                        
                        <li><a href="{:url('admin/index/main')}"> 用户列表</a></li>
                    </ul>
                </li>

                <li class="menu-list"><a href="#"><i class="fa fa-th-list"></i> <span>用户管理(前台)</span></a>
                    <ul class="sub-menu-list">
                        
                        <li><a href="{:url('admin/person/main')}"> 用户列表</a></li>
                    </ul>
                </li>

                <li class="menu-list"><a href="#"><i class="fa fa-th-list"></i> <span>角色管理</span></a>
                    <ul class="sub-menu-list">
                        
                        <li><a href="{:url('admin/role/role')}"> 角色列表</a></li>
                        <li><a href="{:url('admin/role/role')}"> 角色分配</a></li>
                    </ul>
                </li>

                <li class="menu-list"><a href="#"><i class="fa fa-th-list"></i> <span>权限管理</span></a>
                    <ul class="sub-menu-list">
                        
                        <li><a href="{:url('admin/access/access')}"> 权限列表</a></li>
                    </ul>
                </li>
                <li class="menu-list"><a><i class="fa fa-th-list"></i> <span>作家申请</span></a>
                    <ul class="sub-menu-list">
                        <li><a href="{:url('admin/Writer/writer_apply')}"> 申请列表</a></li>
                    </ul>
                </li>
                <li class="menu-list"><a><i class="fa fa-th-list"></i> <span>作家管理</span></a>
                    <ul class="sub-menu-list">
                        <li><a href="{:url('admin/Writer/writer_user')}"> 作家列表</a></li>
                    </ul>
                </li>
                <li class="menu-list"><a><i class="fa fa-th-list"></i> <span>广告管理</span></a>
                    <ul class="sub-menu-list">
                        <li><a href="{:url('admin/Guanggao/index')}"> 广告列表</a></li>
                        <li><a href="{:url('admin/Guanggao/add')}"> 广告添加</a></li>
                    </ul>
                </li>
                <li class="menu-list"><a href=""><i class="fa fa-book"></i> <span>漫画管理</span></a>
                    <ul class="sub-menu-list">
                        <li><a href="{:url('admin/cartoon/index')}"> 漫画列表</a></li>
                        <li><a href="{:url('admin/cartoon/create')}"> 添加漫画</a></li>
                    </ul>
                </li>
                <li class="menu-list"><a href=""><i class="fa fa-book"></i> <span>漫画分类</span></a>
                    <ul class="sub-menu-list">
                        <li><a href="{:url('admin/classify/index')}"> 分类列表</a></li>
                        <li><a href="{:url('admin/classify/create')}"> 添加分类</a></li>
                    </ul>
                </li>

                <li class="menu-list"><a href="#"><i class="fa fa-th-list"></i> <span>链接管理</span></a>
                    <ul class="sub-menu-list">
                        
                        <li><a href="{:url('admin/link/link')}"> 链接列表</a></li>
                    </ul>
                </li>

            </ul>
            <!--sidebar nav end-->

        </div>
    </div>
    <!-- left side end-->

    <!-- main content start-->
    <div class="main-content" >

        <!-- header section start-->
        <div class="header-section">

            <!--toggle button start-->
            <a class="toggle-btn"><i class="fa fa-bars"></i></a>
            <!--toggle button end-->


            <!--notification menu start -->
            <div class="menu-right">
                <ul class="notification-menu">
                    <li>
                        <a href="#" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
                            <img src="/static/admin/images/photos/user-avatar.png" alt="" />
                            {$guanli}
                            <span class="caret"></span>
                        </a>
                        <ul class="dropdown-menu dropdown-menu-usermenu pull-right">
                            <li><a href="#"><i class="fa fa-user"></i>  Profile</a></li>
                            <li><a href="#"><i class="fa fa-cog"></i>  Settings</a></li>
                            <li><a href="#"><i class="fa fa-sign-out"></i> Log Out</a></li>
                        </ul>
                    </li>

                </ul>
            </div>
            <!--notification menu end -->

        </div>
        <!-- header section end-->


        <!--body wrapper start-->
        <div class="wrapper">
            <div class="row">
                <div class="col-sm-12">
                    <section class="panel">
                        <header class="panel-heading">
                            上传漫画
                            <span class="tools pull-right">
                        <a href="javascript:;" class="fa fa-chevron-down"></a>
                        <a href="javascript:;" class="fa fa-times"></a>
                     </span>
                        </header>
                        <div class="panel-body">
                            <form id="default" name="regForm" class="form-horizontal" action="{:url('admin/cartoon/save')}" method="post" enctype="multipart/form-data">
                                <legend>漫画内容</legend>

                                <div class="form-group">
                                    <label class="col-md-2 col-sm-2 control-label">封 面</label>
                                    <div class="col-md-9">
                                        <div class="fileupload fileupload-new" data-provides="fileupload">
                                            <div class="fileupload-new thumbnail df" style="width: 200px; height: 150px;">

                                            </div>
                                            <div class="fileupload-preview fileupload-exists thumbnail" style="max-width: 200px; max-height: 150px; line-height: 20px;"></div>
                                            <div>
                                                   <span class="btn btn-default btn-file">
                                                   <span class="fileupload-new"><i class="fa fa-paper-clip"></i> 选择封面</span>
                                                   <span class="fileupload-exists"><i class="fa fa-undo"></i> Change</span>
                                                   <input type="file" class="default pp" name="pic" />
                                                   </span>
                                                <a href="#" class="btn btn-danger fileupload-exists" data-dismiss="fileupload"><i class="fa fa-trash"></i> Remove</a>
                                                <span class="text-danger fengmian">  </span>
                                            </div>
                                        </div>
                                    </div>
                                </div>

                                <div class="form-group">
                                    <label class="col-md-2 col-sm-2 control-label">漫画名称</label>
                                    <div class="col-md-6 col-sm-6">
                                        <input type="text" class="form-control" name="name" placeholder="漫画名称">
                                    </div>
                                    <!--<span class="text-danger mingcheng"> *名称不能为空 </span>-->
                                </div>

                                <div class="form-group">
                                    <label class="col-md-2 col-sm-2 control-label">作 者</label>
                                    <div class="col-md-6 col-sm-6">
                                        <input type="text" class="form-control" name="author" placeholder="作 者">
                                    </div>
                                    <!--<span class="text-danger zuozhe"> *作者不能为空 </span>-->
                                </div>

                                <div class="form-group">
                                    <label class="col-md-2 col-sm-2 control-label">漫画国度</label>
                                    <div class="col-md-6 col-sm-6">
                                        <select class="form-control m-bot15" name="cid">
                                            <option value="1">中 国</option>
                                            <option value="2">日 本</option>
                                        </select>
                                    </div>
                                </div>

                                <div class="form-group">
                                    <label class="col-md-2 col-sm-2 control-label">漫画分类</label>
                                    <div class="col-md-6 col-sm-6">
                                        <select class="form-control m-bot15" name="fid">
                                            <option value="3">冒 险</option>
                                            <option value="8">历 史</option>
                                            <option value="1">原 创</option>
                                            <option value="6">奇 幻</option>
                                            <option value="9">战 争</option>
                                            <option value="2">热 血</option>
                                            <option value="5">科 幻</option>
                                            <option value="7">运 动</option>
                                            <option value="4">魔 法</option>
                                        </select>
                                    </div>
                                </div>

                                <div class="form-group">
                                    <label class="col-md-2 col-sm-2 control-label">简 介</label>
                                    <div class="col-md-6 col-sm-6">
                                        <textarea name="detail" cols="58" rows="8">作品简介</textarea>
                                    </div>
                                    <!--<span class="text-danger jianjie"> *简介不能为空 </span>-->
                                </div>

                                <div class="form-group">
                                    <label class="col-md-2 col-sm-2 control-label">状 态</label>
                                    <div class="col-md-6 col-sm-6">
                                        <label>
                                            <input tabindex="3" type="radio"  name="status" value="1" checked>
                                            连载中
                                        </label>

                                        <label>
                                            <input tabindex="3" type="radio"  name="status" value="2">
                                            已完结
                                        </label>
                                    </div>
                                </div>

                                <div class="form-group">
                                    <label class="col-md-2 col-sm-2 control-label">创建时间</label>
                                    <div class="col-md-6 col-sm-6">
                                        <input type="date" class="form-control" value="{$time|date='Y-m-d H:i:s',###}" disabled>
                                    </div>
                                </div>

                                <input type="hidden" name="createtime" value="{$time}">

                                <div class="col-md-2 col-sm-2 control-label">
                                    <button class="btn btn-primary btn-lg">新增</button>
                                </div>

                            </form>
                        </div>
                    </section>
                </div>
            </div>
        </div>
        <!--body wrapper end-->

        <!--footer section start-->
        <!--footer section end-->


    </div>
    <!-- main content end-->
</section>

<!-- Placed js at the end of the document so the pages load faster -->
{js href="/static/admin/js/jquery-1.10.2.min.js"}
{js href="/static/admin/js/jquery-ui-1.9.2.custom.min.js"}
{js href="/static/admin/js/jquery-migrate-1.2.1.min.js"}
{js href="/static/admin/js/bootstrap.min.js"}
{js href="/static/admin/js/modernizr.min.js"}
{js href="/static/admin/js/jquery.nicescroll.js"}


<!--data table-->
{js href="/static/admin/js/data-tables/jquery.dataTables.js"}
{js href="/static/admin/js/data-tables/DT_bootstrap.js"}


<!--icheck -->
{js href="/static/admin/js/iCheck/jquery.icheck.js"}
{js href="/static/admin/js/icheck-init.js"}

<!--multi-select-->
{js href="/static/admin/js/jquery-multi-select/js/jquery.multi-select.js"}
{js href="/static/admin/js/jquery-multi-select/js/jquery.quicksearch.js"}
{js href="/static/admin/js/multi-select-init.js"}

<!--spinner-->
{js href="/static/admin/js/fuelux/js/spinner.min.js"}
{js href="/static/admin/js/fuelux/js/spinner-init.js"}

<!--file upload-->
{js href="/static/admin/js/bootstrap-fileupload.min.js"}

<!--tags input-->
{js href="/static/admin/js/jquery-tags-input/jquery.tagsinput.js"}
{js href="/static/admin/js/tagsinput-init.js"}

<!--bootstrap input mask-->
{js href="/static/admin/js/bootstrap-inputmask/bootstrap-inputmask.min.js"}

<!--common scripts for all pages-->
{js href="/static/admin/js/scripts.js"}

<!--script for editable table-->
{js href="/static/admin/js/editable-table.js"}

<!-- END JAVASCRIPTS -->

<script>


</script>

<script>
    jQuery(document).ready(function() {
        EditableTable.init();
    });
</script>


</body>
</html>
